package com.sp2.dev.test.builder;

/**
 * Created by IntelliJ IDEA.
 * User: zhimingli
 * Date: 14-1-23
 * Time: 下午6:00
 * To change this template use File | Settings | File Templates.
 */
public class Director {
    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public void construct() {
        builder = new ConcreateBuilder();

        builder.builderPart1();

        builder.builderPart2();

        builder.returnProduct();

    }
}
